from omegaconf import OmegaConf
from easydict import EasyDict
import os
# 获取当前文件的绝对路径
current_file_path = os.path.abspath(__file__)
# 获取当前文件所在的文件夹路径
current_dir = os.path.dirname(current_file_path)
# 加载配置文件
config = OmegaConf.load(f"{current_dir}/../config/MotorCfg.yaml")

# 将配置文件转换为 Python 字典
MotorCfg = EasyDict(OmegaConf.to_container(config, resolve=True))



# print(MotorCfg.head.motor1.enabled)